﻿ 
namespace Core.Items.Modules
{
    /*

		MetaGroup                      = Weapons
		Group                          = Firearms
		Size                           = Medium
		Module                         = znatvoy-berjiar-ia medium autocannon prototype
		CpuUsage                       = 13.00 TF
		ReactorUsage                   = 143.00 RP
		Type                           = Active
		Slot                           = Turret
		TechnologicalLevel             = T4P
		Mass                           = 635.25 kg
		PackedVolume                   = 0.60 U
		Volume                         = 1.20 U
		AccumulatorConsumption         = 2.00 AP
		CycleTime                      = 8.00 sec
		OptimalRange                   = 225 m
		Falloff                        = 235 m
		AmmoChargeType                 = Medium bullets
		AmmoChargeCapacity             = 180 pcs
		Damage                         = 250 %
		HitDispersion                  = 10.00 •
    */

    using System;
    using Base;
    using Contracts.Enums;
    using Contracts.Interfaces;
    using Extensions;
    using Features;
    
    /// <summary>
    /// Znatvoy-Berjiar-IA medium autocannon prototype module class
    /// </summary>
    /// <remarks>File generated on 31/10/2011 16:00:56</remarks>
    public sealed class ZnatvoyBerjiarIaMediumAutocannonPrototype : ModuleBase
    {
        /// <summary>
        /// Create a new instance of the <see cref="ZnatvoyBerjiarIaMediumAutocannonPrototype"/> class.
        /// </summary>
        public ZnatvoyBerjiarIaMediumAutocannonPrototype()
            : base(
            "Znatvoy-Berjiar-IA medium autocannon prototype",
            "",
            ModuleMetaGroupsEnum.Weapons,
            ModuleGroupsEnum.Firearms,
            TechnologyLevelsEnum.Level4|TechnologyLevelsEnum.Prototype,
            SizesEnum.Medium,
            new LazyFeature[] { 
				new LazyFeature(typeof(WeaponCpuUsage<double>),13.00),
				new LazyFeature(typeof(WeaponReactorUsage<double>),143.00),
				new LazyFeature(typeof(ModuleMass<double>),635.25),
				new LazyFeature(typeof(WeaponAccumulatorUsage<double>),2.00),
				new LazyFeature(typeof(AmmunitionType<AmmunitionTypesEnum>),AmmunitionTypesEnum.MediumBullets),
				new LazyFeature(typeof(AmmoCapacity<double>),180),
				new LazyFeature(typeof(MediumFirearmCycleTime<double>),8.00),
				new LazyFeature(typeof(MediumFirearmOptimal<double>),225),
				new LazyFeature(typeof(MediumFirearmFalloff<double>),235),
				new LazyFeature(typeof(MediumFirearmDamage<double>),250),
				new LazyFeature(typeof(MediumFirearmHitDispersion<double>),10.00), },
            null,
            new IModifier[] { 
				new Modifier( FeatureTypesEnum.Robot, FeaturesEnum.RobotMass, 635.25 ){ IsVisible = false }, } )
        {
        }

        /// <summary>
        /// Obtains the activation type
        /// </summary>
        public override ModuleActivationTypesEnum ActivationType
        {
            get { return ModuleActivationTypesEnum.Active; }
        }
        /// <summary>
        /// Obtains the module slot group 
        /// </summary>
        public override SlotGroupsEnum SlotGroup
        {
            get { return SlotGroupsEnum.Chassis; }
        }
        /// <summary>
        /// Obtains the module slot type 
        /// </summary>
        public override SlotTypesEnum SlotType
        {
            get { return SlotTypesEnum.Turret; }
        }
    }
}